﻿<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <base href="/" />

    <link href="css/material.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
    <link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
    <link href="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.css" rel="stylesheet" />
    <link href="fonts/style.css" rel="stylesheet">
    <link href="fonts/icon.css" rel="stylesheet">
    <link href="_content/AyBorg.Diagrams/style.min.css" rel="stylesheet" />
    <link href="_content/AyBorg.Diagrams/default.styles.min.css" rel="stylesheet" />
    <link href="css/colors.css" rel="stylesheet" />
    <link href="css/backbone.css" rel="stylesheet" />
    <link href="css/styles.css" rel="stylesheet" />
    <link href="AyBorg.Web.styles.css" rel="stylesheet" />

    <link rel="icon" type="image/png" href="favicon.ico" />

    <script>
        function switchTheme(dark) {
            const Tag = document.documentElement;
            dark ? Tag.dataset.color = 'dark' : Tag.dataset.color = '';
        }
    </script>
    <script>
        function downloadFile(filename, contentType, content) {
            const file = new File([content], filename, { type: contentType });
            const exportUrl = URL.createObjectURL(file);
            const a = document.createElement("a");
            document.body.appendChild(a);
            a.href = exportUrl;
            a.download = filename;
            a.target = "_self";
            a.click();
            URL.revokeObjectURL(exportUrl);
        }
    </script>
    <script>
        function getElementBoundingClientRect(element) {
            return element.getBoundingClientRect();
        }
    </script>

    <HeadOutlet @rendermode="RenderModeForPage" />
</head>

<body>
    <Routes @rendermode="RenderModeForPage" />
    <script src="_framework/blazor.web.js"></script>
    <script src="_content/MudBlazor/MudBlazor.min.js"></script>
    <script src="_content/CodeBeam.MudBlazor.Extensions/MudExtensions.min.js"></script>
    <script src="_content/AyBorg.Diagrams/script.min.js"></script>
</body>

</html>

@code {
    [CascadingParameter]
    private HttpContext HttpContext { get; set; } = default!;

    private IComponentRenderMode? RenderModeForPage => HttpContext.Request.Path.StartsWithSegments("/Account")
        ? null
        : InteractiveServer;
}
